package cn.tedu.wenzhang2.pojo.dto;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class UserRegDTO {
    @NotBlank(message = "用户名不能为 空 空白 空字符串")
    @ApiModelProperty(value = "用户名",required = true,example = "admin")
    private String username;
    @NotBlank(message = "密码不能为 空 空白 空字符串")
    @ApiModelProperty(value = "密码",required = true,example = "123456")
    private String password;
    @NotBlank(message = "昵称不能为 空 空白 空字符串")
    @ApiModelProperty(value = "昵称",required = true,example = "阿帅")
    private String nickname;
}
